/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.simba.apriori;

import java.util.HashMap;
import java.util.TreeSet;
import org.simba.utils.Configuration;

/**
 * Interface for compute the a-priori score of uris
 * @author ngonga
 */
public interface AprioriFunction {
    /** Gets the apriori score for on given URI
     * 
     * @param uri Input URI
     * @param endpoint Endpoint from which the score is to be computed
     * @param graph Graph from the data is to be fetched
     * @return Score value
     */
    
    public double getAprioriScore(String uri, String endpoint, String graph);
    /** Batch version of the other apriori score 
     * 
     * @param uris Set of URIs
     * @param endpoint Endpoint from which the score is to be computed
     * @param graph Graph from the data is to be fetched
     * @return Map of uri to score
     */
     
    public HashMap<String, Double> getAprioriScore(TreeSet<String> uris, String endpoint, String graph);
    public HashMap<String, Double> getAprioriScore(TreeSet<String> uris, Configuration c);
}
